package com.ji.li.reactadminproexampleservice.service;

import com.ji.li.reactadminproexampleservice.entity.menu.Menu;
import com.ji.li.reactadminproexampleservice.entity.menu.MenuRole;
import com.ji.li.reactadminproexampleservice.entity.menu.MenuUserRole;
import com.ji.li.reactadminproexampleservice.entity.menu.Role;
import com.ji.li.reactadminproexampleservice.entity.auth.AuthRole;
import com.ji.li.reactadminproexampleservice.entity.user.User;
import com.ji.li.reactadminproexampleservice.entity.auth.AuthUserRole;

import java.util.List;

/**
 * 封装 MapperService 数据库 操作接口
 */
public interface MapperService {
    List<Object> adminLoginAccount(String userName, String passWord);

    List<AuthUserRole> selectUserRoles(Integer uid);

    User setUser(Integer uid);

    AuthRole setRole(Integer rId);

    User findUserByName(String userName);

    List<MenuUserRole> selectMenuUserRole(Integer uId);

    List<Role> selectRole(List<Integer> roleId);

    List<MenuRole> selectMenuRole(Integer roleId);

    List<Menu> selectMenus(List<Integer> menuId);
}
